﻿using System;
using System.Text;

namespace GPS.GPSLanguage
{
    class ElevationToken
    {
        internal static void ParseLanguage(GPSData gpsData, System.Collections.Queue q)
        {
            String elToken = (String)q.Dequeue();
            int elNumber = 0;
            try
            {
                if(elToken.Length>0)
                    elNumber = int.Parse(elToken);
            }
            catch { }

            gpsData.SetElevation(gpsData.CurrentSatelliteCount, elNumber);
        }
    }
}
